package com.shsmi.util;

public class TokenInfo {
    private String request = "getToken";
    private String tokenserverurl;
    private String username;
    private String password;
    private String clientid;
    private String expiration;

    public String getRequest()
    {
        return this.request;
    }
    public void setRequest(String request) {
        this.request = request;
    }

    public String getTokenserverurl() {
        return this.tokenserverurl;
    }
    public void setTokenserverurl(String tokenserverurl) {
        this.tokenserverurl = tokenserverurl;
    }

    public String getUsername() {
        return this.username;
    }
    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return this.password;
    }
    public void setPassword(String password) {
        this.password = password;
    }

    public String getClientid() {
        return this.clientid;
    }
    public void setClientid(String clientid) {
        this.clientid = clientid;
    }

    public String getExpiration() {
        return this.expiration;
    }
    public void setExpiration(String expiration) {
        this.expiration = expiration;
    }

    public String getTokenRequest() {
        StringBuffer s = new StringBuffer();
        s.append(this.tokenserverurl);
        s.append("?request=").append(this.request);
        s.append("&username=").append(this.username);
        s.append("&password=").append(this.password);
        s.append("&clientid=").append(this.clientid);
        s.append("&expiration=").append(this.expiration);
        return s.toString();
    }
}
